package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.EditLocationAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.market.EditRecieveLocation.EditLocationPresenter;
import com.kelvin.paopao.module.market.market.EditRecieveLocation.EditRecieveLocationActivity;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/25.
 */

@Module
public class EditLocationModule {
    private EditRecieveLocationActivity mView;

    public EditLocationModule(EditRecieveLocationActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public EditLocationPresenter providePresenter() {
        return new EditLocationPresenter(mView);
    }

    @PerActivity
    @Provides
    public EditLocationAdapter provideAdapter() {
        return new EditLocationAdapter(mView);
    }
}
